<?php
	$css_list[0]['url'][] = './tpl/css/zone.css';
	$js_list[0] = './tpl/js/zone.js';
?>
<!--{template inc/header}-->
<!--{template inc/u/u_menu}-->
<div class="wrapper">
	<div class="zone_head clearfix">
            <div class="n_score_info">
                <ul class="info_content">
                    <li><h4 class="n_i_title">剩余可用积分:<span>{$home_user['credits']}</span></h4> <a class="u-commission" href="{u user/commission}">返积分说明</a></li>
                    <li>
                        <a href="{u exchange/index}"  class="u-btn btn-green"><i class="btn-ico btn-green-gift"></i>兑换礼品</a>
                        <div class="clearfix"></div>
                    </li>
                </ul>
            </div>
            
	</div>
</div>
<div class="mt20 zone_wrapper clearfix">
	<table class="n_list_data" border="0" cellpadding="0" cellspacing="0">
		<tbody>
			<tr class="lt-title">
				<th class="first" width="110">订单编号</th>
				<th>返积分类型</th>
				<th>所得积分</th>
				<th>支付状态</th>
				<th>支付/取消时间</th>
				<th width="80">结算时间</th>
				<th class="last" width="80">创建时间</th>
			</tr>
                        <!--{eval $o_index = 1;}-->
			<!--{loop $order_list $order}-->
                        <tr <!--{if $o_index%2 == 0}-->class="n-list-table-split"<!--{/if}-->>
				<td class="lt-td first" style=" vertical-align:middle;" rowspan="2">o{$order['order_id']}</td>
				<td class="lt-td tl" style="">{if $order['type'] == 0}佣金返积分{else}购买返积分{/if}</td>
				<td class="lt-td td-amount" style="">{if $order['score'] > 0}{$order['score']}{else}<span style="color:#ccc;">获取中</span>{/if}</td>
				<td class="lt-td" style="">{if $order['pay_time'] > 0}{if $order['is_pay'] == 1}已支付{else}取消支付{/if}{else}未支付{/if}</td>
				<td class="lt-td" style="">{if $order['pay_time'] > 0}{$order['pay_time_format']}{/if}</td>
				<td class="lt-td" rowspan="2" style="vertical-align:middle;">{if $order['settlement_time'] > 0}{$order['settlement_time_format']}{/if}</td>
				<td class="lt-td last tl" style="vertical-align:middle;" rowspan="2">{$order['create_time']}</td>
			</tr>
			<tr  <!--{if $o_index%2 == 0}-->class="n-list-table-split"<!--{/if}-->>
				<td class="lt-td tl" colspan="4">商品：{$order['goods_name']}</td>
			</tr>
                        <!--{eval $o_index++;}-->
			<!--{/loop}-->
		</tbody>
	</table>

	<div class="pagination pt15">
		<!--{subtemplate inc/pages}--> 
	</div>
</div>
<!--{template inc/footer}-->
